package com.jspeed.hibernate.dialogservices;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "DEVICES")
public class Devices {
	
	private long deviceId;
	private String deviceName;
	private String deviceType;
	
	
	
	public Devices() {
		super();
	}

	public Devices(String deviceName, String deviceType) {
		super();
		this.deviceName = deviceName;
		this.deviceType = deviceType;
	}

	@Id
	@GeneratedValue
	@Column(name = "DEVICE_ID")
	public long getDeviceId() {
		return deviceId;
	}
	
	public void setDeviceId(long deviceId) {
		this.deviceId = deviceId;
	}

	@Column(name = "DEVICE_NAME", nullable = false, length = 100)
	public String getDeviceName() {
		return deviceName;
	}
	
	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	@Column(name = "DEVICE_TYPE", nullable = false, length = 100)
	public String getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(String deviceType) {
		this.deviceType = deviceType;
	}
}
